package com.azusa.ktc_friend.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.azusa.ktc_friend.entity.NoFriend;
import org.springframework.data.jpa.repository.Modifying;

/**
 * @Description tb_nofriend 数据访问接口
 * @date 2020-10-12 18:26:57
*/
public interface NoFriendDao extends JpaRepository<NoFriend,String>,JpaSpecificationExecutor<NoFriend>{

    @Modifying
    void deleteByUseridAndFriendid(String userId,String friendId);

    Integer countByUseridAndFriendid(String userId,String friendId);
}

